package com.sun.services.users.repository;


import com.sun.entitys.users.UserRole;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * MP自动填充Handler
 *
 * @Author whsunchunbo@qq.com
 * @CreateTime 2025/9/9 05:40
 */
public interface UserRoleRepository extends CrudRepository<UserRole, Long> {
    void deleteByUserId(Long userId);

    List<UserRole> findByUserId(Long userId);
}
